package com.adpython.utils;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * @author wenhua.yang
 * @date 2009-7-8
 */
public class SeoUtil {
	
	public static Map<String,String> buildTitleAndMeta(HttpServletRequest req){
		String tagname=req.getParameter("tagname");
		if(!StrUtil.empty(tagname))
			tagname=String.valueOf(tagname.charAt(0)).toUpperCase()+tagname.substring(1);
		
		Map<String,String> retmap=new HashMap<String,String>();
		String title=(StrUtil.empty(tagname)?"":tagname+" - ")+"my life, my belief, my absolute self - adpython.com";
		String keywords="adpython, java, python, music, film, philosophy, javascript, mind";
		String description="My note, my life, my belief, my absolute self. You can find java, python, javascript here, and music ,film too, and philosophy and mind. I hope you enjoy your life here. ";
		retmap.put("seo_title", title);
		retmap.put("seo_keywords", keywords);
		retmap.put("seo_description", description);
		return retmap;
	}
}
